package com.youan.pangu.security.bean;

import com.youan.pangu.base.bean.ElementTree;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;
import java.util.List;

/**
 * @description:
 * @author: 辛晟昊
 * @time: 2020/3/8 17:47
 */
public class LoginInfor extends User {

    private List<ElementTree> routers = null;
    private String userId = "";


    public LoginInfor(String username, String password, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, authorities);
    }

    public LoginInfor(String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, enabled, accountNonExpired, credentialsNonExpired, accountNonLocked, authorities);
    }


    public List<ElementTree> getRouters() {
        return routers;
    }

    public void setRouters(List<ElementTree> routers) {
        this.routers = routers;
    }

    public String getUserId(){
        return userId;
    }
    public void setUserId(String userId){
        this.userId = userId;
    }

}
